package com.pederszt.foodiary.jdo;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class ItemCost
{
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long itemCostId;

	@Persistent
	private Double cost;

	@Persistent
	private Store store;

	@Persistent
	private Date purchaseDate;

	@Persistent
	private Item item;

	@Persistent
	private Integer quantity;

	@Persistent
	private QuantityType quantityType;

	public Double getCost()
	{
		return cost;
	}

	public void setCost(Double cost)
	{
		this.cost = cost;
	}

	public Store getStore()
	{
		return store;
	}

	public void setStore(Store store)
	{
		this.store = store;
	}

	public Date getPurchaseDate()
	{
		return purchaseDate;
	}

	public void setPurchaseDate(Date purchaseDate)
	{
		this.purchaseDate = purchaseDate;
	}

	public Long getItemCostId()
	{
		return itemCostId;
	}

	public void setItemCostId(Long itemCostId)
	{
		this.itemCostId = itemCostId;
	}

	public Item getItem()
	{
		return item;
	}

	public void setItem(Item item)
	{
		this.item = item;
	}

	public Integer getQuantity()
	{
		return quantity;
	}

	public void setQuantity(Integer quantity)
	{
		this.quantity = quantity;
	}

	public QuantityType getQuantityType()
	{
		return quantityType;
	}

	public void setQuantityType(QuantityType quantityType)
	{
		this.quantityType = quantityType;
	}

}
